:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #4895ef;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --text-color: #495057;
    --muted-color: #6c757d;
}

body {
    background-color: #f5f7ff;
    color: var(--text-color);
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.back-btn {
    color: white;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
    text-decoration: none;
}

.back-btn:hover {
    background-color: rgba(255,255,255,0.2);
}

.header-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
    text-align: center;
    flex: 1;
}

.action-btn {
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
    cursor: pointer;
}

.action-btn:hover {
    background-color: rgba(255,255,255,0.2);
}

.profile-container {
    max-width: 600px;
    margin: 30px auto;
    padding: 0 15px;
    flex: 1;
}

.profile-card {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 30px;
    position: relative;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.profile-header {
    text-align: center;
    padding: 30px 20px 20px;
    position: relative;
}

.avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.user-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background-color: #e9ecef;
}

.edit-avatar {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    border: 2px solid white;
    transition: all 0.3s;
}

.edit-avatar:hover {
    transform: scale(1.1);
    background: var(--secondary-color);
}

.user-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.user-status {
    color: var(--muted-color);
    font-size: 0.9rem;
}

.info-item {
    display: flex;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.info-item:last-child {
    border-bottom: none;
}

.info-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.info-content {
    flex: 1;
}

.info-label {
    font-size: 13px;
    color: var(--muted-color);
    margin-bottom: 3px;
}

.info-value {
    font-size: 16px;
    font-weight: 500;
    color: var(--dark-color);
}

.btn-logout {
    background-color: white;
    color: #ff4d4f;
    border: 1px solid #ffcccc;
    height: 50px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 1rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 77, 79, 0.1);
    cursor: pointer;
}

.btn-logout i {
    margin-right: 10px;
    font-size: 18px;
}

.btn-logout:hover {
    background-color: #fff5f5;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 77, 79, 0.15);
}

.security-notice {
    background-color: rgba(67, 97, 238, 0.05);
    border-radius: 12px;
    padding: 15px;
    margin-top: 25px;
    border-left: 3px solid var(--primary-color);
    animation: fadeIn 1s ease-out;
}

.security-title {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.security-title i {
    color: var(--primary-color);
    margin-right: 8px;
}

.security-text {
    font-size: 14px;
    color: var(--muted-color);
    line-height: 1.6;
}

.footer {
    text-align: center;
    padding: 20px 0;
    color: var(--muted-color);
    font-size: 13px;
    margin-top: auto;
    background-color: white;
}

.loading-container {
    text-align: center;
    padding: 40px 0;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(67, 97, 238, 0.2);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: var(--muted-color);
    font-size: 16px;
}

@media (max-width: 576px) {
    .profile-header {
        padding: 20px 15px 15px;
    }

    .user-avatar {
        width: 85px;
        height: 85px;
    }

    .user-name {
        font-size: 1.3rem;
    }

    .info-item {
        padding: 15px;
    }

    .info-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .btn-logout {
        height: 46px;
        font-size: 0.95rem;
    }
}